; Merged Mod: .\HuTaoSwim1\HuTao.ini, .\HuTaoSwim2\HuTao.ini, .\HuTaoSwim3\HuTao.ini, .\HuTaoSwim4\HuTao.ini, .\HuTaoSwim5\HuTao.ini

; Constants ---------------------------

[Constants]
global persist $swapvar = 0
global $active
global $creditinfo = 0

[KeySwap]
condition = $active == 1
key = k
type = cycle
$swapvar = 0,1,2,3,4
$creditinfo = 0

[Present]
post $active = 0

; Shader ------------------------------

; Overrides ---------------------------

[TextureOverrideHuTaoPosition]
hash = dd16576c
run = CommandListHuTaoPosition
$active = 1

[TextureOverrideHuTaoBlend]
hash = 153dba3f
run = CommandListHuTaoBlend

[TextureOverrideHuTaoTexcoord]
hash = 51afdfcf
run = CommandListHuTaoTexcoord

[TextureOverrideHuTaoVertexLimitRaise]
hash = 60345291

[TextureOverrideHuTaoIB]
hash = 0535853d
run = CommandListHuTaoIB

[TextureOverrideHuTaoHead]
hash = 0535853d
match_first_index = 0
run = CommandListHuTaoHead

[TextureOverrideHuTaoBody]
hash = 0535853d
match_first_index = 16509
run = CommandListHuTaoBody

[TextureOverrideHuTaoFaceHeadDiffuse]
hash = d00bb0ef
run = CommandListHuTaoFaceHeadDiffuse

; CommandList -------------------------

[CommandListHuTaoPosition]
if $swapvar == 0
	vb0 = ResourceHuTaoPosition.0
else if $swapvar == 1
	vb0 = ResourceHuTaoPosition.1
else if $swapvar == 2
	vb0 = ResourceHuTaoPosition.2
else if $swapvar == 3
	vb0 = ResourceHuTaoPosition.3
else if $swapvar == 4
	vb0 = ResourceHuTaoPosition.4
endif

[CommandListHuTaoBlend]
if $swapvar == 0
	vb1 = ResourceHuTaoBlend.0
	handling = skip
	draw = 22365,0
else if $swapvar == 1
	vb1 = ResourceHuTaoBlend.1
	handling = skip
	draw = 17552,0
else if $swapvar == 2
	vb1 = ResourceHuTaoBlend.2
	handling = skip
	draw = 22362,0
else if $swapvar == 3
	vb1 = ResourceHuTaoBlend.3
	handling = skip
	draw = 17549,0
else if $swapvar == 4
	vb1 = ResourceHuTaoBlend.4
	handling = skip
	draw = 16173,0
endif

[CommandListHuTaoTexcoord]
if $swapvar == 0
	vb1 = ResourceHuTaoTexcoord.0
else if $swapvar == 1
	vb1 = ResourceHuTaoTexcoord.1
else if $swapvar == 2
	vb1 = ResourceHuTaoTexcoord.2
else if $swapvar == 3
	vb1 = ResourceHuTaoTexcoord.3
else if $swapvar == 4
	vb1 = ResourceHuTaoTexcoord.4
endif

[CommandListHuTaoIB]
if $swapvar == 0
	handling = skip
	drawindexed = auto
else if $swapvar == 1
	handling = skip
	drawindexed = auto
else if $swapvar == 2
	handling = skip
	drawindexed = auto
else if $swapvar == 3
	handling = skip
	drawindexed = auto
else if $swapvar == 4
	handling = skip
	drawindexed = auto
endif

[CommandListHuTaoHead]
if $swapvar == 0
	ib = ResourceHuTaoHeadIB.0
	ps-t0 = ResourceHuTaoHeadDiffuse.0
	ps-t1 = ResourceHuTaoHeadLightMap.0
else if $swapvar == 1
	ib = ResourceHuTaoHeadIB.1
	ps-t0 = ResourceHuTaoHeadDiffuse.1
	ps-t1 = ResourceHuTaoHeadLightMap.1
else if $swapvar == 2
	ib = ResourceHuTaoHeadIB.2
	ps-t0 = ResourceHuTaoHeadDiffuse.2
	ps-t1 = ResourceHuTaoHeadLightMap.2
else if $swapvar == 3
	ib = ResourceHuTaoHeadIB.3
	ps-t0 = ResourceHuTaoHeadDiffuse.3
	ps-t1 = ResourceHuTaoHeadLightMap.3
else if $swapvar == 4
	ib = ResourceHuTaoHeadIB.4
	ps-t0 = ResourceHuTaoHeadDiffuse.4
	ps-t1 = ResourceHuTaoHeadLightMap.4
endif

[CommandListHuTaoBody]
if $swapvar == 0
	ib = ResourceHuTaoBodyIB.0
	ps-t0 = ResourceHuTaoBodyDiffuse.0
	ps-t1 = ResourceHuTaoBodyLightMap.0
else if $swapvar == 1
	ib = ResourceHuTaoBodyIB.1
	ps-t0 = ResourceHuTaoBodyDiffuse.1
	ps-t1 = ResourceHuTaoBodyLightMap.1
else if $swapvar == 2
	ib = ResourceHuTaoBodyIB.2
	ps-t0 = ResourceHuTaoBodyDiffuse.2
	ps-t1 = ResourceHuTaoBodyLightMap.2
else if $swapvar == 3
	ib = ResourceHuTaoBodyIB.3
	ps-t0 = ResourceHuTaoBodyDiffuse.3
	ps-t1 = ResourceHuTaoBodyLightMap.3
else if $swapvar == 4
	ib = ResourceHuTaoBodyIB.4
	ps-t0 = ResourceHuTaoBodyDiffuse.4
	ps-t1 = ResourceHuTaoBodyLightMap.4
endif

[CommandListHuTaoFaceHeadDiffuse]
if $swapvar == 0
	ps-t0 = ResourceHuTaoFaceHeadDiffuse.0
else if $swapvar == 1
	ps-t0 = ResourceHuTaoFaceHeadDiffuse.1
else if $swapvar == 2
	ps-t0 = ResourceHuTaoFaceHeadDiffuse.2
else if $swapvar == 3
	ps-t0 = ResourceHuTaoFaceHeadDiffuse.3
else if $swapvar == 4
	ps-t0 = ResourceHuTaoFaceHeadDiffuse.4
endif

; Resources ---------------------------

[ResourceHuTaoPosition.0]
type = Buffer
stride = 40
filename = .\HuTaoSwim1\HuTaoPosition.buf

[ResourceHuTaoBlend.0]
type = Buffer
stride = 32
filename = .\HuTaoSwim1\HuTaoBlend.buf

[ResourceHuTaoTexcoord.0]
type = Buffer
stride = 12
filename = .\HuTaoSwim1\HuTaoTexcoord.buf

[ResourceHuTaoHeadIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\HuTaoSwim1\HuTaoHead.ib

[ResourceHuTaoBodyIB.0]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\HuTaoSwim1\HuTaoBody.ib

[ResourceHuTaoHeadDiffuse.0]
filename = .\HuTaoSwim1\HuTaoHeadDiffuse.dds

[ResourceHuTaoHeadLightMap.0]
filename = .\HuTaoSwim1\HuTaoHeadLightMap.dds

[ResourceHuTaoBodyDiffuse.0]
filename = .\HuTaoSwim1\HuTaoBodyDiffuse.dds

[ResourceHuTaoBodyLightMap.0]
filename = .\HuTaoSwim1\HuTaoBodyLightMap.dds

[ResourceHuTaoFaceHeadDiffuse.0]
filename = .\HuTaoSwim1\HuTaoFaceHeadDiffuse.dds

[ResourceHuTaoPosition.1]
type = Buffer
stride = 40
filename = .\HuTaoSwim2\HuTaoPosition.buf

[ResourceHuTaoBlend.1]
type = Buffer
stride = 32
filename = .\HuTaoSwim2\HuTaoBlend.buf

[ResourceHuTaoTexcoord.1]
type = Buffer
stride = 12
filename = .\HuTaoSwim2\HuTaoTexcoord.buf

[ResourceHuTaoHeadIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\HuTaoSwim2\HuTaoHead.ib

[ResourceHuTaoBodyIB.1]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\HuTaoSwim2\HuTaoBody.ib

[ResourceHuTaoHeadDiffuse.1]
filename = .\HuTaoSwim2\HuTaoHeadDiffuse.dds

[ResourceHuTaoHeadLightMap.1]
filename = .\HuTaoSwim2\HuTaoHeadLightMap.dds

[ResourceHuTaoBodyDiffuse.1]
filename = .\HuTaoSwim2\HuTaoBodyDiffuse.dds

[ResourceHuTaoBodyLightMap.1]
filename = .\HuTaoSwim2\HuTaoBodyLightMap.dds

[ResourceHuTaoFaceHeadDiffuse.1]
filename = .\HuTaoSwim2\HuTaoFaceHeadDiffuse.dds

[ResourceHuTaoPosition.2]
type = Buffer
stride = 40
filename = .\HuTaoSwim3\HuTaoPosition.buf

[ResourceHuTaoBlend.2]
type = Buffer
stride = 32
filename = .\HuTaoSwim3\HuTaoBlend.buf

[ResourceHuTaoTexcoord.2]
type = Buffer
stride = 12
filename = .\HuTaoSwim3\HuTaoTexcoord.buf

[ResourceHuTaoHeadIB.2]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\HuTaoSwim3\HuTaoHead.ib

[ResourceHuTaoBodyIB.2]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\HuTaoSwim3\HuTaoBody.ib

[ResourceHuTaoHeadDiffuse.2]
filename = .\HuTaoSwim3\HuTaoHeadDiffuse.dds

[ResourceHuTaoHeadLightMap.2]
filename = .\HuTaoSwim3\HuTaoHeadLightMap.dds

[ResourceHuTaoBodyDiffuse.2]
filename = .\HuTaoSwim3\HuTaoBodyDiffuse.dds

[ResourceHuTaoBodyLightMap.2]
filename = .\HuTaoSwim3\HuTaoBodyLightMap.dds

[ResourceHuTaoFaceHeadDiffuse.2]
filename = .\HuTaoSwim3\HuTaoFaceHeadDiffuse.dds

[ResourceHuTaoPosition.3]
type = Buffer
stride = 40
filename = .\HuTaoSwim4\HuTaoPosition.buf

[ResourceHuTaoBlend.3]
type = Buffer
stride = 32
filename = .\HuTaoSwim4\HuTaoBlend.buf

[ResourceHuTaoTexcoord.3]
type = Buffer
stride = 12
filename = .\HuTaoSwim4\HuTaoTexcoord.buf

[ResourceHuTaoHeadIB.3]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\HuTaoSwim4\HuTaoHead.ib

[ResourceHuTaoBodyIB.3]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\HuTaoSwim4\HuTaoBody.ib

[ResourceHuTaoHeadDiffuse.3]
filename = .\HuTaoSwim4\HuTaoHeadDiffuse.dds

[ResourceHuTaoHeadLightMap.3]
filename = .\HuTaoSwim4\HuTaoHeadLightMap.dds

[ResourceHuTaoBodyDiffuse.3]
filename = .\HuTaoSwim4\HuTaoBodyDiffuse.dds

[ResourceHuTaoBodyLightMap.3]
filename = .\HuTaoSwim4\HuTaoBodyLightMap.dds

[ResourceHuTaoFaceHeadDiffuse.3]
filename = .\HuTaoSwim4\HuTaoFaceHeadDiffuse.dds

[ResourceHuTaoPosition.4]
type = Buffer
stride = 40
filename = .\HuTaoSwim5\HuTaoPosition.buf

[ResourceHuTaoBlend.4]
type = Buffer
stride = 32
filename = .\HuTaoSwim5\HuTaoBlend.buf

[ResourceHuTaoTexcoord.4]
type = Buffer
stride = 12
filename = .\HuTaoSwim5\HuTaoTexcoord.buf

[ResourceHuTaoHeadIB.4]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\HuTaoSwim5\HuTaoHead.ib

[ResourceHuTaoBodyIB.4]
type = Buffer
format = DXGI_FORMAT_R32_UINT
filename = .\HuTaoSwim5\HuTaoBody.ib

[ResourceHuTaoHeadDiffuse.4]
filename = .\HuTaoSwim5\HuTaoHeadDiffuse.dds

[ResourceHuTaoHeadLightMap.4]
filename = .\HuTaoSwim5\HuTaoHeadLightMap.dds

[ResourceHuTaoBodyDiffuse.4]
filename = .\HuTaoSwim5\HuTaoBodyDiffuse.dds

[ResourceHuTaoBodyLightMap.4]
filename = .\HuTaoSwim5\HuTaoBodyLightMap.dds

[ResourceHuTaoFaceHeadDiffuse.4]
filename = .\HuTaoSwim5\HuTaoFaceHeadDiffuse.dds



; .ini generated by GIMI (Genshin-Impact-Model-Importer) mod merger script
; If you have any issues or find any bugs, please open a ticket at https://github.com/SilentNightSound/GI-Model-Importer/issues or contact SilentNightSound#7430 on discord